package recursion;

public class Client {

	public static void main(String[] args) {
		System.out.println(Server.getSum());
	}
	
}

class Server{
	
	static{
		initializeIfNessary();
	}
	
	private static int sum;
	public static int getSum(){
		initializeIfNessary();
		return sum;
	}
	private static boolean initialize = false;
	private static void initializeIfNessary(){
		if(!initialize){
			for (int i = 0; i < 100; i++) {
				sum += i;
			}
			initialize = true;
		}
	}
}